package com.design.cfr.model;

import lombok.Builder;
import lombok.Data;

/**
 * Chain responsibility element result
 *
 * @description: 责任链节点执行结果
 * @author: cyj
 * @date 2022 -08-12 18:10:41
 */
@Data
@Builder
public final class ChainResponsibilityElementResult<T> {

    /**
     * Pass 是否通过
     */
    private boolean pass;

    /**
     * A class 执行节点类名
     */
    private Class aClass;

    /**
     * Message 描述
     */
    private String message;

    /**
     * Data 数据
     */
    private T data;

}
